package cn.yangtianxia.org.domain;

import cn.yangtianxia.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 部门类
 */
@Data//lombok自动生成setter，getter
public class Department extends BaseDomain {
    //部门编号
    private String sn;
    //部门名称
    private String name;

    private String dirPath;

    private Integer state;

    private Long manager_id;

    private Long parent_id;

    private Employee manager;

    private Department parent;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();

}
